package com.bdqn;

public class SimpleDaoFactory extends NewsServiceImpl {
    /**
     * 创建NewsDao实例的工厂方法
     * @return
     */
    public static NewsDao getInstance(){
        return new NewsDaoImpl();
    }

    NewsDao dao = SimpleDaoFactory.getInstance();
    NewsServiceImpl service = new NewsServiceImpl();


}
